package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.po.Member;
import com.project.entity.qo.MemberQo;
import com.project.result.ResponseResult;

import java.util.List;

/**
 * @ProjectName:
 * @Package:
 * @ClassName:
 * @Author: ZhaoLongShi
 * @CreateDate:
 */
@SuppressWarnings("all")
public interface MemberService {

    /**
     * 获取所有会员信息(分页)
     *
     * @param current
     * @return
     */
    ResponseResult<Page<Member>> selectAllMember(int current);

    /**
     * 根据类别查询用户
     *
     * @param cardType
     * @return
     */
    ResponseResult<List<Member>> selectByType(int cardType);

    /**
     * 根据会员ID删除会员(可批量)
     *
     * @param idList
     * @return
     */
    ResponseResult deleteMemberByIds(List<Long> idList);

    /**
     * 添加会员
     *
     * @param memberQo
     * @return
     */
    ResponseResult addMember(MemberQo memberQo);

    /**
     * 根据会员ID更新会员信息
     *
     * @param memberQo
     * @return
     */
    ResponseResult updateMemberById(MemberQo memberQo);

}
